/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.encapsulation.service.internal;

import za.ac.cput.assignment2.encapsulation.model.StudentDetails;
import za.ac.cput.assignment2.encapsulation.service.Student;

/**
 *
 * @author Matthew 
 */
public class PrintStudent implements Student{

    @Override
    public String display(StudentDetails student) {
 
        return "Student Name: " + student.getName() +
                "\nStudent Surname: " + student.getSurname() 
                + "\nStudent Year: " + student.getYear();
    }
    
}
